//
//  SubjectView.h
//  iMarks
//
//  Created by Christian Speich on 19.01.08.
//  Copyright 2008 Christian Speich. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@class Mark;

@interface SubjectView : NSView {
	IBOutlet NSView *subjectView;
	IBOutlet NSView *markDetailClassTestView;
	IBOutlet NSView *markDetailTestView;
	IBOutlet NSTextField *subjectName;
	IBOutlet NSTextField *teacher;
	IBOutlet NSTextField *average;
	IBOutlet NSTableView *classTestsView;
	IBOutlet NSTableView *testsView;
	IBOutlet NSSegmentedCell *classTestSegmentedCell;
	IBOutlet NSSegmentedCell *testSegmentedCell;
	IBOutlet NSDrawer* detailViewDrawer;
	IBOutlet NSPopUpButton* currentEditMarkMark;
	IBOutlet NSPopUpButton* currentEditMarkMark2;
	IBOutlet NSPopUpButton* currentEditMarkValency;
	int index;
	Mark* currentEditMark;
}

- (id) initWithSubjectIndex:(int)i;

- (void) markHasChanged:(id)sender;
- (void) valencyHasChanged:(id)sender;

- (void)addOrRemoveMark:(id)sender;
- (void)addOrRemoveClassMark:(id)sender;
@end
